<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>编辑我的信息</title>
		<link rel="stylesheet" type="text/css" href="../css/index.css"></link>
		<script src="../js/common.js">
</script>
		<script src="../js/jquery.plugins/jquery.js">
</script>
		<link rel="stylesheet" type="text/css"
			href="../js/jquery.plugins/easyui/css/default/easyui.css"></link>
		<link rel="stylesheet" type="text/css"
			href="../js/jquery.plugins/easyui/css/icon.css"></link>
		<script src="../js/jquery.plugins/easyui/jquery.easyui.min.js">
</script>
		<script src="../js/myvalidatebox.js">
</script>
		<script src="../js/jquery.plugins/easyui/easyui-lang-zh_CN.js">
</script>
<script>
	$(function(){
			$('#saveBtn').linkbutton({iconCls:'icon-save',text:"保存",plain:true});
			$('#resetBtn').linkbutton({iconCls:'icon-reload',text:"重置",plain:true});
		
			$("#email").validatebox( {validType:'emailandlength[0,64]',invalidMessage:'请输入正确的邮件格式,并且长度不超过64位'});
			$("#tel").validatebox( {validType:'length[0,32]'});
			$("#mobile").validatebox( {validType:'length[0,32]'});
			$("#address").validatebox( {validType:'length[0,256]'});
			
			$('form').submit(function(){
				if( checkValidate(["email" , "tel" , "mobile","address"]) ){
					var param = "email=" + $("#email").val() 
							+ "&tel=" + $("#tel").val() + "&mobile=" + $("#mobile").val()
							+ "&address=" + $("#address").val();
					jsonSend("savemyinfo.ht",param,function(flag){
						if( flag )
							errorMsg( "提示","修改成功" );
						else
							infoMsg( "提示","修改失败" );
					});
				}
				return false;
			});
		});
	</script>
	</head>
	<body>
		<!-- 导航部分 -->
		<div class="position">
			您当前的位置：我的信息 &gt;&gt; 编辑我的信息
			<span><a
			</span>
		</div>
		<!-- 导航部分结束 -->
		<!-- 表单部分开始 -->
		<div>
			<form action="savemyinfo.ht" method="post" onsubmit="return false;">
				<table class="form" style="width:50%">
				<tr>
					<td class="title">
						email：
					</td>
					<td>
						<input type="text" style="width: 200px;" id="email" name="email"
							value="${model.email }" />
					</td>
				</tr>
				<tr>
					<td class="title">
						电话：
					</td>
					<td>
						<input type="text" style="width: 200px;" id="tel" name="tel"
							value="${model.tel }" />
					</td>
				</tr>
				<tr>
					<td class="title">
						手机：
					</td>
					<td>
						<input type="text" style="width: 200px;" id="mobile" name="mobile"
							value="${model.mobile }" />
					</td>
				</tr>
				<tr>
					<td class="title">
						地址：
					</td>
					<td>
						<input type="text" style="width: 200px;" id="address"
							name="address" value="${model.address }" />
					</td>
				</tr>
				<tr>
					<td colspan="2" class="btntd">
						<a href="javascript:commit();" id="saveBtn">保存</a>
						<a href="javascript:reset();" id="resetBtn">重置</a>
					</td>
				</tr>
				</table>
			</form>
		</div>
		<!-- 表单部分结束  -->
	</body>
</html>